package com.interview.ujiuye3;

/**
 * Copyright (C), 2018-2020
 * FileName: Demo4
 * Author:   kongfanyu
 * Date:     2020/10/13 14:51
 */
public class Demo4 {
    public static void main(String[] args) {
        Phone phone = new Phone();
        new Thread( () -> {
            phone.sendSMS();
        } ,"AAA").start();

        new Thread( () -> {
            phone.sendSMS();
        } ,"BBB").start();
    }
}
